//
//  UIScrollView+MJ.h
//  VICategory
//
//  Created by MN on 2022/7/13.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIScrollView (MJ)

/// 下拉刷新
/// @param pullDownBlock 下拉block
- (void)vi_pullDown:(void (^)(void))pullDownBlock;


/// 上拉刷新
/// @param pullUpBlock 上拉block
- (void)vi_pullUp:(void (^)(void))pullUpBlock;


/// 上、下拉刷新
/// @param pullDownBlock 下拉block
/// @param pullUpBlock 上拉block
- (void)vi_pullDown:(void (^)(void))pullDownBlock
             pullUp:(void (^)(void))pullUpBlock;


/// 头视图开始刷新
- (void)vi_headerBeginRefreshing;

///  脚视图开始刷新
- (void)vi_footerBeginRefreshing;

/// 头视图停止刷新
- (void)vi_headerEndRefreshing;

/// 脚视图停止刷新
- (void)vi_footerEndRefreshing;

/// 都停止刷新
- (void)vi_allEndRefreshing;

//注册cell
- (void)vi_registerOneClass:(NSString *)className;
- (void)vi_registerClass:(NSArray <NSString *> *)classNames;

//注册cell 有xib
- (void)vi_registerOneNib:(NSString *)nibName;
- (void)Vi_registerNib:(NSArray <NSString *> *)nibNames;
@end

NS_ASSUME_NONNULL_END
